//
//  FTViewController.m
//  FTSmartDeviceModule
//
//  Created by ISPWang on 09/07/2017.
//  Copyright (c) 2017 ISPWang. All rights reserved.
//

#import "FTViewController.h"
#import <FTBaseComponents/FTBaseComponents.h>
//#import <FTSmartDeviceModule/XLinkExportObject.h>
#import <FTSmartDeviceModule/FTSmartDeviceModule.h>
//#import "XLinkExportObject.h"
#import <FTSmartDeviceModule/HFSmartLink.h>
#import <FTSmartDeviceModule/FTSmartAccount.h>
@interface FTViewController ()

@end

@implementation FTViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
//    DeviceTypeOven
//    DeviceTypeSteamer
//    [[XLinkExportObject sharedObject] connectDevice:nil withAccessKey:@212];
//    [[HFSmartLink shareInstence] setWaitTimers:10];
//    [[XLinkExportObject sharedObject] start];
//    [[XLinkExportObject sharedObject] connectDevice:nil withAccessKey:@32];
//    self.view.backgroundColor = [UIColor grayColor];
    [self createdAlertView];
    [self createdActionSheet];
}
- (void)createdAlertView {
    AKAlertView *alert = [[AKAlertView alloc]initWithIconName:@"" withTitle:@"提示" withMessage:@"网关监测到新设备，是否立即绑定?"];
    [alert addButton:ButtonTypeOK withTitle:@"稍后" handler:^(AKAlertViewItem *item) {
    }];
    [alert addButton:ButtonTypeOK withTitle:@"绑定" handler:^(AKAlertViewItem *item) {
        
    }];
    [alert show];
}
- (void)createdActionSheet {
    AKActionSheet *sheet = [[AKActionSheet alloc] initWithTitle:@"提示" delegate:nil cancelButtonTitle:@"取消" destructiveButtonTitle:@"目标" otherButtonTitles:@"nihao",@"name", nil];
    [sheet show];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
